package com.study.template.course;

public abstract class AbstractCourse {
    protected void createCourse(){
        //1.预习资料
        preResources();
        //2.制作课件
        createPPT();
        //3.直播授课
        zhibo();
        //4.课后资料
        afterResource();
        //5.布置作业
        postHomework();
        //6.检查作业
        if (isCheck()) {
            checkHomework();
        }
    }

    private void checkHomework() {
        System.out.println("检查作业");
    }

    protected boolean isCheck(){
        return false;
    }

    protected void postHomework() {
        System.out.println("布置作业");
    }

    protected void afterResource() {
        System.out.println("上传课后资料");
    }

    protected void zhibo() {
        System.out.println("直播上课");
    }

    protected void createPPT() {
        System.out.println("制作课件");
    }

    protected void preResources() {
        System.out.println("预习资料");
    }
}
